import request from '@/utils/request'

const api_name = '/admin/order/orderInfo'

// 订单统计
export const GetOrderStatisticsData = searchObj => {
  return request({
    url: `${api_name}/getOrderStatisticsData`,
    method: 'get',
    params: searchObj,
  })
}

// 分页列表
export const getPageList = (page, limit, searchObj) => {
  return request({
    url: `${api_name}/findByPage/${page}/${limit}`,
    method: 'get',
    params: searchObj,
  })
};

// 详情数据
export const getOrderInfo = (orderNo) => {
  return request({
    url: `${api_name}/findOrderInfo/${orderNo}`,
    method: 'get',
  })
};